home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 November
/
Ahoy_Magazine_86-11_1986_Double_L.d64
/
Rep. Comp. 4
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
284b
|
12 lines
0 print"[147][144]":poke53280,6:poke53281,1
1 print" commodares....repeated compression #4 ":print:print
2 rem repeated compression
3 rem solution by
4 rem jim speers
5 rem
10 input"enter text";x$:p$=left$(x$,1)
20 fori=2tolen(x$):ifmid$(x$,i,1)=mid$(x$,i-1,1)then40
25 ifmid$(x$,i,1)="/"then40
30 p$=p$+mid$(x$,i,1)
40 next i:print p$